<!--
 * @Author: your name
 * @Date: 2021-08-10 09:55:40
 * @LastEditTime: 2021-08-10 10:15:11
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \briup\3-html&css\day07\02-单方向进行设置.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>margin单方向设置</title>
    <style>
        span{
            display:inline-block;
            border:1px solid red;
            margin-left:50px;
            /* margin-right:50px; */
        }
        div{
            /* 默认盒子 */
            box-sizing:content-box;
            border:1px solid red;
            width:200px;
            height:200px;
            /* 如果写两个 auto代表左右水平居中 */
            margin:0px auto;
        }
    </style>
</head>
<body>
    <div>
    <span>我的 |</span>
    <span>收藏 |</span>
    <span>关注 |</span>
    <span>退出</span>
</div>
</body>
</html>